Skip to content

Commit

Permalink
FS#1884: respect $conf['showuseras'] in feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
foosel committed Jun 26, 2010
1 parent 69266de commit 681a59b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion feed.php
Expand Up @@ -253,7 +253,18 @@ function rss_buildItems(&$rss,&$data,$opt){
$item->author = '';
if($user && $conf['useacl'] && $auth){
$userInfo = $auth->getUserData($user);
$item->author = $userInfo['name'];
if ($userInfo){
switch ($conf['showuseras']){
case 'username':
$item->author = $userInfo['name'];
break;
default:
$item->author = $user;
break;
}
} else {
$item->author = $user;
}
if($userInfo && !$opt['guardmail']){
$item->authorEmail = $userInfo['mail'];
}else{
Expand Down

0 comments on commit 681a59b

Please sign in to comment.